package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FUsTltrExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FUsTltrExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andLtcIsNull() {
            addCriterion("ltc is null");
            return (Criteria) this;
        }

        public Criteria andLtcIsNotNull() {
            addCriterion("ltc is not null");
            return (Criteria) this;
        }

        public Criteria andLtcEqualTo(Float value) {
            addCriterion("ltc =", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcNotEqualTo(Float value) {
            addCriterion("ltc <>", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcGreaterThan(Float value) {
            addCriterion("ltc >", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcGreaterThanOrEqualTo(Float value) {
            addCriterion("ltc >=", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcLessThan(Float value) {
            addCriterion("ltc <", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcLessThanOrEqualTo(Float value) {
            addCriterion("ltc <=", value, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcIn(List<Float> values) {
            addCriterion("ltc in", values, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcNotIn(List<Float> values) {
            addCriterion("ltc not in", values, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcBetween(Float value1, Float value2) {
            addCriterion("ltc between", value1, value2, "ltc");
            return (Criteria) this;
        }

        public Criteria andLtcNotBetween(Float value1, Float value2) {
            addCriterion("ltc not between", value1, value2, "ltc");
            return (Criteria) this;
        }

        public Criteria andCmtIsNull() {
            addCriterion("cmt is null");
            return (Criteria) this;
        }

        public Criteria andCmtIsNotNull() {
            addCriterion("cmt is not null");
            return (Criteria) this;
        }

        public Criteria andCmtEqualTo(Float value) {
            addCriterion("cmt =", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtNotEqualTo(Float value) {
            addCriterion("cmt <>", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtGreaterThan(Float value) {
            addCriterion("cmt >", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtGreaterThanOrEqualTo(Float value) {
            addCriterion("cmt >=", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtLessThan(Float value) {
            addCriterion("cmt <", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtLessThanOrEqualTo(Float value) {
            addCriterion("cmt <=", value, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtIn(List<Float> values) {
            addCriterion("cmt in", values, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtNotIn(List<Float> values) {
            addCriterion("cmt not in", values, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtBetween(Float value1, Float value2) {
            addCriterion("cmt between", value1, value2, "cmt");
            return (Criteria) this;
        }

        public Criteria andCmtNotBetween(Float value1, Float value2) {
            addCriterion("cmt not between", value1, value2, "cmt");
            return (Criteria) this;
        }

        public Criteria andEFactorIsNull() {
            addCriterion("e_factor is null");
            return (Criteria) this;
        }

        public Criteria andEFactorIsNotNull() {
            addCriterion("e_factor is not null");
            return (Criteria) this;
        }

        public Criteria andEFactorEqualTo(Float value) {
            addCriterion("e_factor =", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorNotEqualTo(Float value) {
            addCriterion("e_factor <>", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorGreaterThan(Float value) {
            addCriterion("e_factor >", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorGreaterThanOrEqualTo(Float value) {
            addCriterion("e_factor >=", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorLessThan(Float value) {
            addCriterion("e_factor <", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorLessThanOrEqualTo(Float value) {
            addCriterion("e_factor <=", value, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorIn(List<Float> values) {
            addCriterion("e_factor in", values, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorNotIn(List<Float> values) {
            addCriterion("e_factor not in", values, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorBetween(Float value1, Float value2) {
            addCriterion("e_factor between", value1, value2, "eFactor");
            return (Criteria) this;
        }

        public Criteria andEFactorNotBetween(Float value1, Float value2) {
            addCriterion("e_factor not between", value1, value2, "eFactor");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}